#ifndef DEFECTS_H
#define DEFECTS_H

#include "DbObjects.h"


typedef struct
{
    int           iID;
	int           iDeviceID;
	char          iTypeID[128];
	char          iSubtypeID[128];
    char          sPlatformCode[128];
    char          sRemark[512];
	char          sAdddate[128];
	int           iIsdelete;
	

} band_defect_info;      
class Defects : public DbObjects
{
    public:
    Defects(Database* pDb);
	virtual ~Defects();

    virtual BaseObject* Create();
    //BaseObject* Create(quint64 uiID);

    virtual bool SQLLoad(QString sSQLCondition);
    virtual bool SQLInsert(unsigned int uiID);
    virtual bool SQLInsert(BaseObject* pObject);
	
    virtual bool SQLModify(unsigned int uiID);
    virtual bool SQLModify(BaseObject* pObject);
    virtual bool SQLDelete(unsigned int uiID) ;
    virtual bool SQLDelete(BaseObject* pObject) ;
    virtual bool SQLClear();

};
#endif